Repository navigation
mcpx(cli): batch the flag-reach probe to one invocation per command (#1980) - #7377
developing-today[bot] wants to merge 7 commits into
Conversation
…g seed per Run (#1980 stage 1, Codex) Codex P1: commands.go/exec.go script paths called os.Exit on a nonzero script status, terminating an in-process caller of cli.Run and skipping its deferred CloseInline. They now return exitStatusError, an ExitCoder Run already translates into the process exit code; Run does not prefix it with mcpx: since the run already reported itself. Codex P2: config.SetPathsConfigSeed is a package global; Run now clears it on entry and defers clearing it on exit, so a --paths-config seed cannot leak between sequential in-process invocations.
… Codex P1) Codex round 2 (PR #2714): the stage-1 tests would still pass with either round-1 bug restored. Add failing-first regressions: a script exiting 3 through cli.Run returns 3 in both the local text and local JSON paths (mutation-checked: restoring os.Exit in the JSON branch kills the test binary with exit status 3); renderExecResult returns an ExitCoder for a nonzero daemon-side result in text and JSON shapes (remote path); sequential Run calls do not inherit a --paths-config seed (seed visible via config.ResolveChainFrom before, absent after flagless and flagged Runs).
…1980) TestEverySettingFlagReachesTheResolvedValue invoked every handler once per (command, flag) pair, rebuilding the whole settings schema twice per invocation (bindFlags, then Settings): O(commands x flags) schema builds that made it the package's top duration contributor (14.5s of a single no-race run) and blew the stress 600s budget under race/shuffle/repeat (#2859). Batch instead: one invocation carrying every canonical flag and one carrying every alias per command, with the same per-setting flag-layer origin assertion. Flags the batch does not carry home (a requirement refusing --mcp-spec=probe-value aborts the fold; two spellings of --interpreter/--shell collide) fall back to their own invocation with the original assertions verbatim, so coverage is unchanged: 0.62s, same checked-pair floor.
Resolve the module repoint (#4626): the branch's new cli.Run files move from github.com/dezren39/mcpx to github.com/developing-today/code/pkgs/mcpx, and cmd/mcpx/main.go keeps the slim signal+Run entrypoint on the new import path. No behavioural change from the stage-1 head.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
agent-note:v1 |
|
🤖 Agent note · handed off
|
Archive-branch disposition (Drew's 2026-11-07 21:57 CST correction) for branch
archive/janitor-2026-11-07/2859.This archive branch was created by the janitor/repo-keeper sweep, not by any preservation decision. Per the correction, archive branches enter the normal disposition pipeline: the useful changes are reviewed and extracted here — this PR is the permanent preservation record for the branch's commits and diff ("ensure you opened a pr so branch exists forever"). Outcome per batch triage (batch issue #7297): FINISH the work and MERGE this PR, or CLOSE it with the record standing (closed-with-record is a valid end state; the changes remain recoverable from this PR). The branch was deleted after this PR was opened; its tip SHA is in the execution evidence.
Content: 5 unique commit(s) vs main; authored-file diff 6/6 (authored/total files). Pure build output/fixtures in the branch, if any, are discarded-bulk and are not the extraction target — the authored files (code, scripts, markdown, docs) are.
Tip: 2787b48 · tree: f0fc481e01c794d3
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.